import { getToken, request } from '@inbiz/utils';

const token = getToken();
// 获取认领任务
export async function getTasks(params?: any) {
  return request(`/edoc2Flow-web/process/getResults/getMyCandidateTasks`, {
    params,
  });
}

// 认领
export async function setTasks(params?: any) {
  return request(`/edoc2Flow-web/process/operation/processClaim?orgToken=${token}`, {
    method: 'post',
    data: params,
  });
}
